<template>
  <div class="error-page">
    <a-result
      status="404"
      title="404"
      sub-title="Sorry, the page you visited does not exist."
    >
      <template #extra>
        <a-button @click="goHome">Back Home</a-button>
      </template>
    </a-result>
  </div>
</template>

<script>
import { useRouter } from "vue-router";
export default {
  setup(props) {
    const router = useRouter();
    const goHome = () => {
      router.push({ path: "/" });
    };

    return {
      goHome,
    };
  },
};
</script>

<style lang="scss" scoped>
.error-page {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
</style>
